package com.cdshangpai.utils.db.beans;

import android.content.ContentValues;

import com.cdshangpai.utils.offlinecache.base.slot.IdPicker;
import com.cdshangpai.utils.offlinecache.base.slot.TitleImagePicker;
import com.cdshangpai.utils.offlinecache.base.slot.VersionPicker;
import com.cdshangpai.utils.offlinecache.base.slot.VideoPicker;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//视频数据
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Video implements IdPicker, VersionPicker, TitleImagePicker, VideoPicker {
    public Integer id;
    public Long index;
    public String title;
    public String content;
    public String titleimg;
    public String url;
    public String version;
    public String titleimgUrl;
    public String videoUrl;

    public ContentValues getValues()
    {
        ContentValues values=new ContentValues();
        values.put("id",id);
        values.put("`index`",index);
        values.put("title",title);
        values.put("content",content);
        values.put("titleimg",titleimg);
        values.put("url",url);
        values.put("version",version);
        return values;
    }
}
